package com.aaa.outbound.mapper;

import com.aaa.entity.outbound.OutorderDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author aaa
 * @since 2020-12-01
 */
@Mapper
@Component
public interface OutorderDetailMapper extends BaseMapper<OutorderDetail> {
    @Select("select sum(qty) from o_outorder_detail where outorderno=#{outorderno} group by outorderno")
    Integer selectSumQtyByOutorderno(String outorderno);
    @Select("select * from o_outorder_detail where outorderno=#{outorderno}")
    List<OutorderDetail> selectOutoderDetailByOutorderno(String outorderno);
}
